C (209/254)

From:GURER OZEN
Date:24 Apr 00 at 10:23:49
Subject:Re: strdup()

RA> malloc(). This means that YOU must free the returned string (memory)
RA> when you are done with it. Failure to do so will result in a memory
RA> leak.

This is not true. Memory will be automatically free()d at the exit. malloc()
keeps a list of allocated memory.



Gurer Ozen (gozen@isbank.net.tr, madcat@linuxfan.com)

A man of knowledge lives by acting, not by thinking about acting,
nor by thinking about what he will think when he has finished acting.
-- Nagual Don Juan

------------------------------------------------------------------------
You have a voice mail message waiting for you at iHello.com:
http://click.egroups.com/1/3555/1/_/451227/_/956567991/
------------------------------------------------------------------------